# Skedule Frontend Development Server (Go Backend)
# 启动前端开发服务器并连接到Go后端

Write-Host "🚀 启动前端开发服务器 (连接Go后端)" -ForegroundColor Green

# 设置环境变量
$env:VITE_BACKEND_TYPE = "go"
$env:VITE_GO_PORT = "3001"

Write-Host "📋 配置信息:" -ForegroundColor Cyan
Write-Host "   后端类型: $env:VITE_BACKEND_TYPE" -ForegroundColor White
Write-Host "   后端端口: $env:VITE_GO_PORT" -ForegroundColor White

# 启动开发服务器
npm run dev 